<?php
$this->pageTitle=Yii::app()->name . ' - Answer';
$this->breadcrumbs=array(
	'Answer',
);
?>

<h1>Test</h1>

<p>Please fill out the following </p>

<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'answer-form',
	'enableAjaxValidation'=>false,
)); ?>

<p>Test enthält noch <?php echo $stats['rest'].' '; ?>Frage(n) von insgesamt <?php echo $stats['total'].' '; ?></p>
<p>
<?php echo $form->hiddenField($model, 'theId'); ?>
<?php echo $form->hiddenField($model, 'theExam'); ?>
        <div class="row">
		<?php echo $form->labelEx($model,'theQuestion'); ?>
		<?php echo $form->textField($model,'theQuestion'); ?>
		<?php echo $form->error($model,'theQuestion'); ?>
	</div>
</p>
<p>
	<div class="row">
		<?php echo $form->labelEx($model,'theAnswer'); ?>
		<?php echo $form->textField($model,'theAnswer'); ?>
		<?php echo $form->error($model,'theAnswer'); ?>
	</div>
</p>
<p>

	<div class="row submit">
		<?php echo CHtml::submitButton('Send'); ?>
	</div>

</p>
<?php
echo CHtml::link('Test "'.$exam->name .'" beenden',array('/exam/final/id/'.$exam->id));
 $this->endWidget(); ?>
</div><!-- form -->

